// components/indexBar/indexBar.ts
Component({
  /**
   * 组件的属性列表
   */
  properties: {

  },

  /**
   * 组件的初始数据
   */
  data: {
    littleBar: [
      {id: 1, title: '个人车源', icon: '../../static/icons/icon_personalchannel.svg', url: '/pages/personalChannel/personalChannel'},
      {id: 2, title: '新车线索', icon: '../../static/icons/icon_newcarclue.svg', url: '/pages/newCarClue/newCarClue'},
      {id: 3, title: '同行车源', icon: '../../static/icons/icon_peercar.svg', url: '/pages/peerCar/peerCar'}
    ]
  },

  /**
   * 组件的方法列表
   */
  methods: {
    toPage(e: any){
      let url = e.currentTarget.dataset.url
      wx.navigateTo({
        url: url
      })
    }
  }
})
